/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ErrorForm.java
 *
 * Created on Apr 8, 2012, 3:01:41 PM
 */
package GUI;

/**
 *
 * @author DANG
 */
public class ErrorForm extends javax.swing.JPanel {

    /** Creates new form ErrorForm */
    public ErrorForm() {
        initComponents();
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTextField1 = new javax.swing.JTextField();
        jlbFailMessage = new javax.swing.JLabel();
        jbtnOK = new javax.swing.JButton();

        jTextField1.setText("jTextField1");

        jlbFailMessage.setFont(new java.awt.Font("Tahoma", 0, 12));
        jlbFailMessage.setForeground(new java.awt.Color(255, 0, 0));
        jlbFailMessage.setText("Your operation has received an error message.");
        jlbFailMessage.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        jlbFailMessage.setAutoscrolls(true);

        jbtnOK.setText("OK");
        jbtnOK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnOKActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addComponent(jlbFailMessage, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(63, 63, 63))
            .addGroup(layout.createSequentialGroup()
                .addGap(128, 128, 128)
                .addComponent(jbtnOK, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(134, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addComponent(jlbFailMessage, javax.swing.GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)
                .addGap(30, 30, 30)
                .addComponent(jbtnOK)
                .addGap(61, 61, 61))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jbtnOKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnOKActionPerformed
        // TODO add your handling code here:
        jlbFailMessage.setSize(jTextField1.getPreferredSize());
        jlbFailMessage.setText("Bước trên đường bạn ơi xin nhớ,Nơi xa ấy chắc sẽ không gặp nhau,Ta luôn nhớ mãi mãi không hề phai");
        jlbFailMessage.validate();

}//GEN-LAST:event_jbtnOKActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField jTextField1;
    private javax.swing.JButton jbtnOK;
    private javax.swing.JLabel jlbFailMessage;
    // End of variables declaration//GEN-END:variables
}
